<?php
/*
    Template Name: NetVille
*/

get_header("netville");

echo "<div class='contents'>\n";

echo "
    <div class='left-sidebar'> <ul> ";
        dynamic_sidebar('left-sidebar') ;
    echo " </ul> </div>\n"; 

    echo " <div class='posts'> ";

    if( have_posts() ) {
        while( have_posts() ) {
        echo "<div>\n";
            the_post();
            echo "<h1>";
            the_title();
            echo "</h1>
            <div>\n";
            the_content();
            echo "</div>\n";
        echo "</div>\n";
        }
    }

    echo "</div>  <!-- posts -->\n";


    echo "<div class='sidebar'> <ul>\n";
    dynamic_sidebar('default-sidebar') ;
    echo " </ul> </div>\n"; 

    echo "</div>\n";
    echo "
        </div><!-- end #container -->
    </body>
</html>";
            
// echo "<div class='page_name'>page.php</div>";

// get_footer();
// print_r("page.php");

function echo_registration() 
{
    echo "
    <div id='reg-div'>
    <form name='reg-form' id='reg-form' action='#' method='post'>
        <label for='regname'>Name<input type='text' id='regname' size='10'/></label>
    </form>
    </div>\n";
}
?>
